package com.youhome.api.dto;

/**
 * Created by chen365 on 2017/10/18
 */
public enum ResultCode {
    SUCCESS(0, "成功"),
    FAIL(1, "失败"),
    ERROR(2, "错误"),
    DATA_DOES_NOT_EXIST_OR_HAS_BEEN_DELETED(3, "数据不存在或已经删除"),
    TEMPORARY_NO_DATA(4, "暂无数据"),
    NO_DATA_WAS_FOUND(5, "未查询到数据。"),
    EMPTY_PARAM(6, "参数不能为空"),
    EMPTY_ZIPCODE(7, "邮编不能为空"),
    ERROR_PARAM(8, "参数错误"),
    UNAUTHORIZED(9, "未授权"),
    ERROR_TIER_TYPE(10, "请求等级错误"),
    ERROR_FORMAT(11, "请求格式错误");


    /**
     * 状态
     */
    private Integer status;

    /**
     * 提示信息
     */
    private String msg;

    ResultCode(Integer status, String msg) {
        this.status = status;
        this.msg = msg;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
